str_input = input('请输入字符串：')

char_count = dict()
for c in str_input:
    if c in char_count:
        char_count[c] = char_count[c] + 1
    else:
        char_count[c] = 1

print(char_count)
